package com.aisile.portal.controller;


import com.aisile.content.service.ContentService;
import com.aisile.pojo.TbContent;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("content")
public class ContentController {
    @Reference
    ContentService contentService;

    @RequestMapping("findContentByParentId")
    public List<TbContent> findContentByParentId(long parentId){//parentId 实际是分类id

        List<TbContent> contentByParentId=contentService.findContentByParentId(parentId);

        return contentByParentId;

    }
}
